﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kristall.Engine;

namespace Kristall.Editor.Commands
{
    public class AddToLevelCommand : ICommand
    {
        public string Name
        {
            get { return "Add"; }
        }

        AABB _aabb;

        public AddToLevelCommand(AABB aabb)
        {
            _aabb = aabb;
        }

        public bool Execute()
        {
            _aabb.AddToLevel();
            return true;
        }

        public bool Undo()
        {
            _aabb.RemoveFromLevel();
            return true;
        }
    }
}
